Skip to content

Support GitHub 2-factor authentication - #6

Merged
ctrueden merged 2 commits into
masterfrom
two-factor
Apr 18, 2014
Merged

Support GitHub 2-factor authentication#6
ctrueden merged 2 commits into
masterfrom
two-factor

Conversation

@ctrueden

Copy link
Copy Markdown
Member

It works by passing the auth code via the GITHUB_TWO_FACTOR environment variable.

Unfortunately, the patch is really ugly. I tried assigning the header flags to CURL_OPTS and just passing that, but the quoting is really hard to get right. This patch is testing and working for 2-factor, at least.

@ctrueden

Copy link
Copy Markdown
Member Author

@dscho: If your superior script-fu can fix the ugliness, great, but I couldn't get anything simpler than this working in a reasonable amount of time.

dscho and others added 2 commits April 18, 2014 14:26
... in preparation for two-factor authentication...

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
GitHub requires a special header when two-factor authentication is
enabled.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho

dscho commented Apr 18, 2014

Copy link
Copy Markdown
Contributor

@ctrueden could you give this version a quick try?

@ctrueden
ctrueden merged commit d53b570 into master Apr 18, 2014
@ctrueden
ctrueden deleted the two-factor branch April 18, 2014 19:41
@ctrueden

Copy link
Copy Markdown
Member Author

It works! Thank you for fixing it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants